how to locate zeros of rational functions